""" 

    index.py is a catchall URL for people trying to URL hack around
    http://representedby.appspot.com/
        
"""

__author__ = "Will Turnage (will @t wubbahed d0t com)"
__version__ = "0.1.0"
__copyright__ = "Copyright (c) 2009 wubbahed.com"
__license__ = "GPLv3"


import os
import wsgiref.handlers

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app

        
class MainHandler(webapp.RequestHandler):

    def get(self):
        user = {"site" : "Government Influence"}  
        path = os.path.join(os.path.dirname(__file__), 'templates/index.html')
        self.response.out.write(template.render(path, user))


def main():
    application = webapp.WSGIApplication([('/', MainHandler)],
                                       debug=True)
    run_wsgi_app(application)
                                       

if __name__ == '__main__':
    main()
